﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Serialization;
using NSR.Model;

namespace NSR.Service
{
    public class ArticleService
    {
        /// <summary>
        /// 获取推荐列表
        /// </summary>
        /// <param name="record"></param>
        /// <returns></returns>
        public static List<ArticleInfo> GetRankList(int record)
        {
            List<ArticleInfo> list = new List<ArticleInfo>();
            for (var i = 0; i < record; i++)
            {
                var model = new ArticleInfo
                {
                    ArticleID = i,
                    ArticleName = string.Format("卡拉迪亚军团异界纵横{0}", i),
                    Author = "迟到的企鹅",
                    LastChapter = "正文　第二十五章忌惮的风",
                    //LastChapterID = 100000 + i
                };
                list.Add(model);
            }
            return list;
        }

        /// <summary>
        /// 获取全本列表
        /// </summary>
        /// <param name="record"></param>
        /// <returns></returns>
        public static List<ArticleInfo> GetCompletelyList(int record)
        {
            List<ArticleInfo> list = new List<ArticleInfo>();
            for (var i = 0; i < record; i++)
            {
                var model = new ArticleInfo
                {
                    ArticleID = i,
                    ArticleName = string.Format("暗黑同人之黑月传说{0}", i),
                    Author = "迟到的企鹅",
                    LastChapter = "正文　第二十五章忌惮的风",
                    //LastChapterID = 100000 + i
                };
                list.Add(model);
            }
            return list;
        }

       
    }
}
